package kernel_gui.interfaces;

/**
 * @author Yoyo
 *
 */
public interface IGUI {

	/**
	 * Answer the GUI with the answer to the request
	 * 
	 * @param requestID - the same request id that was passed to the kernel when the request was initiated 
	 * @param answer - the expected answer 
	 */
	void returnAnswer(int requestID, Object answer);
	
	
	/**
	 * Answer the GUI with error message
	 * 
	 * @param requestID - the same request id that was passed to the kernel when the request was initiated
	 * @param errorMSG - an error message describing the error, will be shown to the user
	 * @param fatalError - a boolean indicating whether it is a recoverable error or a fatal error (that requires the program to restart)
	 */
	void returnError(int requestID, String errorMSG, boolean fatalError);
}
